package model;

import java.util.ArrayList;

public class Category {
	private String categoryName;
	private ArrayList<Document> categoryDocs;
	private double tempWeight;
	private double precision;
	private double recall;
	private int allHavingInTestSet;

	public Category(String name) {
		this.categoryName = name;
		this.categoryDocs = new ArrayList<Document>();
		this.tempWeight = 0.0;
		this.precision = 0.0;
		this.recall = 0.0;
	}

	public String getCategoryName() {
		return categoryName;
	}

	public void setCategoryName(String categoryName) {
		this.categoryName = categoryName;
	}

	public ArrayList<Document> getCategoryDocs() {
		return categoryDocs;
	}

	public void setCategoryDocs(ArrayList<Document> categoryDocs) {
		this.categoryDocs = categoryDocs;
	}
	
	public double getTempWeight() {
		return tempWeight;
	}

	public void setTempWeight(double tempWeight) {
		this.tempWeight = tempWeight;
	}
	
	public void increaseTempWeight(double value){
		this.tempWeight += value;
	}

	public double getPrecision() {
		return precision;
	}

	public void setPrecision(double precision) {
		this.precision = precision;
	}

	public double getRecall() {
		return recall;
	}

	public void setRecall(double recall) {
		this.recall = recall;
	}

	public int getAllHavingInTestSet() {
		return allHavingInTestSet;
	}

	public void setAllHavingInTestSet(int allHavingInTestSet) {
		this.allHavingInTestSet = allHavingInTestSet;
	}
	
}
